package cn.bupt.adt.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bupt.adt.dao.autogenerate.FeeConfMapper;
import cn.bupt.adt.entity.autogenerate.FeeConf;
import cn.bupt.adt.service.IFeeConfService;

@Service
public class FeeConfServiceImpl implements IFeeConfService{
	
	@Autowired
	private FeeConfMapper feeConfMapper;
	
	@Override
	public int insert(FeeConf feeConf){
		feeConf.setCreateTime(new Date());
		feeConf.setUpdateTime(new Date());
		return feeConfMapper.insert(feeConf);
	}
    
	@Override
	public List<FeeConf> selectAll(){
		return feeConfMapper.selectAll();
    }

	@Override
	public FeeConf selectByInstitutionId(Integer institutionId){
		return feeConfMapper.selectByInstitutionId(institutionId);
    }
}
